cd ..
version=$(git describe --always --dirty)
version_def="#define VERSION \"${version}\""

echo '#ifndef VERSION_H_' > inc/version.h
echo '#define VERSION_H_' >> inc/version.h
echo >> inc/version.h
echo "${version_def}" >> inc/version.h
echo >> inc/version.h
echo '#endif /* VERSION_H_ */' >> inc/version.h